/**
 * 
 */
package com.mvc.service.xt.impl;

import java.util.List;
import java.util.Map;

import org.huangqj.consant.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mvc.dao.BaseDaoI;
import com.mvc.model.xt.Focusing;
import com.mvc.service.xt.FocusingService;

/**
 * @author qingjie
 *
 */
@Service
public class FocusingServiceImpl implements FocusingService {
	
	@Autowired
	private BaseDaoI<Focusing> fBaseDaoI;

	@Override
	public List<Focusing> findFocusings(Focusing focusing) {
		Map<String, Object> params = StringUtils.beanToMap(focusing);
		return fBaseDaoI.find(StringUtils.getHql("Focusing", params, ""), params);
	}

	@Override
	public Focusing saveOrUpdate(Focusing focusing) {
		fBaseDaoI.saveOrUpdate(focusing);
		return focusing;
	}

}
